#include "mainwindowimpl.h"
#include "creatormodel.h"
//
MainWindowImpl::MainWindowImpl( QWidget * parent, Qt::WFlags f)
	: QMainWindow(parent, f), cm(new CreatorModel(this))
{
	setupUi(this);

}
//

void MainWindowImpl::on_CreateModelActn_triggered(){
	DeLbl->setText(cm->getDe(NameLEdt->text(), RoomsSpnBx->value(), AreaDblSpnBx->value(), GarageChckBx->isChecked()));
	EnLbl->setText(cm->getEn(NameLEdt->text(), RoomsSpnBx->value(), AreaDblSpnBx->value(), GarageChckBx->isChecked()));
	FrLbl->setText(cm->getFr(NameLEdt->text(), RoomsSpnBx->value(), AreaDblSpnBx->value(), GarageChckBx->isChecked()));
	ItLbl->setText(cm->getIt(NameLEdt->text(), RoomsSpnBx->value(), AreaDblSpnBx->value(), GarageChckBx->isChecked()));
	RuLbl->setText(cm->getRu(NameLEdt->text(), RoomsSpnBx->value(), AreaDblSpnBx->value(), GarageChckBx->isChecked()));
}
